<%--
  Created by IntelliJ IDEA.
  User: huyan
  Date: 2017/6/12
  Time: 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>RADAR--告警动作</title>
    <link href="${path}/css/style.css" rel="stylesheet" type="text/css">
    <link href="css/alarm_action.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path}/js/user_js.js"></script>
    <script src="${path}/common/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="${path}/common/plugins/uploadFile/ajaxfileupload.js"></script>
    <script src="${path}/common/plugins/forms/jquery.uniform.min.js"></script>
    <script src="${path}/common/plugins/bootstrap/js/bootstrap.js"></script>
    <script src="${path}/common/plugins/layer/layer.js"></script>
    <script type="text/javascript">
        var basePath = "${path}";
    </script>
</head>
<body>
<div class="content">
    <div class="content_detail">
        <div class="control-title">
            <i class="user_manage content_current"></i><span>告警动作</span>
            <div class="spanbtn">
                <button id="save" class="press_btn1"><i class="save top_current"></i>保存</button>
            </div>
        </div>
        <div class="content_condition">
            <c:forEach var="action" items="${actions}">
                <div class="content_group" id="group${action.alarmActionId}" alarmActionId="${action.alarmActionId}">
                    <div class="span12">
                        <label class="control-label">${action.alarmLevel}:</label>
                        <div class="rowbox">
                            <div class="row-fluid">
                                <div class="span6">
                                    <label class="checkbox inline">
                                        <input type="checkbox" <c:if test="${action.mail}">
                                               checked="checked"
                                        </c:if> class="styled mail" value="option1">
                                        邮件
                                    </label>
                                </div>
                            </div>
                            <div class="row-fluid" style="margin-top: 10px;">
                                <div class="span6">
                                    <label class="checkbox inline">
                                        <input type="checkbox" <c:if test="${action.message}">
                                               checked="checked"
                                        </c:if> class="styled message" value="option1">
                                        短信
                                    </label>
                                    <label class="checkbox inline">
                                        提醒时间范围从
                                        <input class="span3 startTime" value="${action.messageStartTime}"  type="text" data-date-format="hh:ii:ss">
                                        到
                                        <input class="span3 endTime" value="${action.messageEndTime}"   type="text" data-date-format="hh:ii:ss">
                                    </label>
                                </div>
                            </div>
                            <div class="row-fluid" style="margin-top: 10px;">
                                <div class="span6">
                                    <label class="checkbox inline">
                                        <input type="checkbox" <c:if test="${action.voice}">
                                               checked="checked"
                                        </c:if> class="styled voice" value="option1">
                                        声音
                                    </label>
                                    <label class="checkbox inline">
                                        <input type="checkbox" <c:if test="${action.hint}">
                                               checked="checked"
                                        </c:if> class="styled hint" value="option2">
                                        提示
                                    </label>
                                </div>
                                <div class="span6">
                                    <label class="checkbox inline">提醒铃声:</label>
                                    <label class="checkbox inline">
                                        <input type="file" defaultBell="${action.defaultBell}" oldBell="${action.bell}"
                                               id="bellFile${action.alarmActionId}" name="file" class="styled"/>
                                    </label>
                                    <label class="checkbox inline">
                                        <button fileId="bellFile${action.alarmActionId}" actionId="${action.alarmActionId}"
                                                title="上传并保存" class="press_btn1 uploadbtn">
                                            <i class="upload top_current"></i>上传
                                        </button>
                                        <button id="${action.alarmActionId}" onclick="resetBell(${action.alarmActionId})"  class="press_btn1">
                                            <i class="reset top_current"></i>恢复默认
                                        </button>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </c:forEach>
        </div>
    </div>
</div>
<script src="js/alarm_action.js"></script>
</body>
</html>
